package org.yate.oa.dao.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.CacheNamespace;
import org.springframework.stereotype.Repository;
import org.yate.oa.dao.IBaseMapperDao;
import org.yate.oa.model.PerformanceEntity;

@Repository(value = "performanceMapper")
@CacheNamespace(size = 512)
public interface PerformanceMapper extends IBaseMapperDao<PerformanceEntity, Integer> {

	Integer addEntity(final PerformanceEntity e);

	List<PerformanceEntity> getEntitiesBy(final PerformanceEntity e);

	PerformanceEntity getEntityBy(final PerformanceEntity e);
	
	PerformanceEntity getLastPerformance(final PerformanceEntity e);
	
	void updateStatus(final PerformanceEntity e);
	
	List<PerformanceEntity> getMyOrgEntities(Map<String, Object> map);

}
